package com.xry.healthy.controller;

import com.xry.common.core.domain.R;
import com.xry.healthy.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**常见病症
 * @Author：ypc
 * @Date：2023/9/30
 * @Description：
 */
@RestController
@RequestMapping("/disease")
public class DiseaseController {

    @Autowired
    private DiseaseService diseaseService;


    @GetMapping("illness/{id}") //根据科室名称查找对应的病症
    public R illness(@PathVariable Long id){
        return diseaseService.illness(id);
    }

    @GetMapping("illness-info/{id}") //根据病症查找对应的病症信息
    public R illInfo(@PathVariable Long id){
        return diseaseService.illInfo(id);
    }



}
